#define _CRT_SECURE_NO_WARNINGS

int convertInteger(int A, int B)
{
    int count = 0;
    int n = 32;
    while (n--)
    {
        if ((A & 1) != (B & 1))
        {
            count++;
        }

        A >>= 1;
        B >>= 1;
    }

    return count;

}